<script setup lang="ts">
import { useTheme } from '@/hooks/useTheme'
import useUpdateManager from '@/hooks/useUpdateManager'
import { logPromotional } from '@/utils/ft-log'
import { onHide, onLaunch, onShow } from '@dcloudio/uni-app'

const { setTheme } = useTheme()

useUpdateManager()
onLaunch(() => {
  __VITE_IS_DEV__ && logPromotional()
})
onShow(() => {

})
onHide(() => {
})

// #ifdef MP-WEIXIN
onThemeChange((res) => {
  setTheme()
})
// #endif
</script>

<style lang="scss">
//@import '~@/style/index.css';

::-webkit-scrollbar {
  width: 0;
  height: 0;
}

/* 默认主题 */
:root page {
  color: #000000;
  background: #f5f5f5;
  --theme-bg-color: #ffffff;
}
</style>
